home *** CD-ROM | disk | FTP | other *** search
-
-
-
- mmmmaaaappppwwww((((3333GGGG)))) mmmmaaaappppwwww((((3333GGGG))))
-
-
-
- NNNNAAAAMMMMEEEE
- mmmmaaaappppwwww - maps a point on the screen into a line in 3-D world coordinates
-
- FFFFOOOORRRRTTTTRRRRAAAANNNN 77777777 SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee mmmmaaaappppwwww((((vvvvoooobbbbjjjj,,,, ssssxxxx,,,, ssssyyyy,,,, wwwwxxxx1111,,,,
- ++++ wwwwyyyy1111,,,, wwwwzzzz1111,,,, wwwwxxxx2222,,,, wwwwyyyy2222,,,, wwwwzzzz2222))))
- iiiinnnntttteeeeggggeeeerrrr****4444 vvvvoooobbbbjjjj,,,, ssssxxxx,,,, ssssyyyy
- rrrreeeeaaaallll wwwwxxxx1111,,,, wwwwyyyy1111,,,, wwwwzzzz1111,,,, wwwwxxxx2222,,,, wwwwyyyy2222,,,, wwwwzzzz2222
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _v_o_b_j expects a viewing object containing the transformations that map
- the current displayed objects to the screen.
-
- _s_x expects the x coordinate of the screen point to be mapped.
-
- _s_y expects the y coordinate of the screen point to be mapped.
-
- _w_x_1 returns the x world coordinate of one endpoint of a line.
-
- _w_y_1 returns the y world coordinate of one endpoint of a line.
-
- _w_z_1 returns the z world coordinate of one endpoint of a line.
-
- _w_x_2 returns the x world coordinate of the remaining endpoint of a
- line.
-
- _w_y_2 returns the y world coordinate of the remaining endpoint of a
- line.
-
- _w_z_2 returns the z world coordinate of the remaining endpoint of a
- line.
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- mmmmaaaappppwwww takes a pair of 2-D screen coordinates and maps them into 3-D world
- coordinates. Since the _z coordinate is missing from the screen
- coordinate system, the point becomes a line in world space. mmmmaaaappppwwww
- computes the inverse mapping from the viewing object, _v_o_b_j.
-
- A viewing object is a graphical object that contains only routines that
- affect the model-view matrix, the projection matrix, or the viewport
- specification. A correct mapping from screen coordinate to world
- coordinates requires that the viewing object contain the projection and
- viewing transformations that mapped the displayed object from world to
- screen coordinates.
-
- The system returns a world space line, which is computed from (_s_x, _s_y)
- and _v_o_b_j, as two points and stores them in the locations addressed by
- _w_x_1, _w_y_1, _w_z_1 and _w_x_2, _w_y_2, _w_z_2.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- mmmmaaaappppwwww((((3333GGGG)))) mmmmaaaappppwwww((((3333GGGG))))
-
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- mapw2
-
- NNNNOOOOTTTTEEEE
- This routine is available only in immediate mode.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-